<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type"  content="text/html; charset=UTF-8">
<title>LanguageTest</title>
</head>
<body>

<h1>Test für Spracheingabe - Input</h1>

<form action="dbwrite.php" method="POST">
  <p>Eingabe:<br><input name="text" type="text" size="30" maxlength="30"></p>
<input type="submit" name="submit" value="Einfügen">
<input type="submit" name="delete" value="Alle Einträge löschen">

      </form>
<br />
<h2>Tabellen-Liste</h2>
<p>Folgende Sätze sind schon in der mySQL-Datenbank vorhanden:</p>
<?php
$con = mysql_connect("localhost","root","blabla123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("kai", $con);

$result = mysql_query("SELECT * FROM test");
$found = false;
while($row = mysql_fetch_array($result))
  {
  	$found = true;
  echo $row['text'];
  echo "<br />";
  }
if (!$found) echo "<i>Keine Einträge in der DB</I>";
mysql_close($con);
?>
</body>
</html>